Skip to content

WEB-9804 - update nav reduce size - #39760

Draft
davidejones wants to merge 5 commits into
masterfrom
david.jones/nav
Draft

WEB-9804 - update nav reduce size#39760
davidejones wants to merge 5 commits into
masterfrom
david.jones/nav

Conversation

@davidejones

@davidejones davidejones commented Sep 7, 2026

Copy link
Copy Markdown
Member

What does this PR do? What is the motivation?

This PR scopes the desktop left sidenav so that Levels 3-4 (the detailed sub-navigation) only render for the top-level section containing the current page, instead of shipping
every product's full sub-nav tree on every page load. This significantly reduces the size of the nav HTML shipped per page. Client-side navigation (pjax) is updated to re-sync the
nav content on each page load so it stays correctly scoped to the new page's section as you navigate.

Page Old nav size New nav size Reduction Total page size reduction
/tracing/trace_collection/ 1.37 MB 448 KB 67.3% 27.7%
/tracing/ 1.37 MB 448 KB 67.3% 28.3%
/logs/ 1.37 MB 421 KB 69.3% 28.9%
/logs/log_collection/ 1.37 MB 421 KB 69.3% 28.5%

Before, every page shipped the entire Level 3-4 nav tree for every top-level section (~1.37 MB, identical everywhere). Now each page only ships Level 3-4 for its own section, cutting nav HTML by roughly two-thirds and total page size by ~28%. This matches expectations, and it's consistent with the /tracing/trace_collection/ expand behavior now working correctly on staging.

Merge readiness

  • Ready for merge

For Datadog employees:

  • ⚠️ Your branch name MUST follow the <name>/<description> convention and include the forward slash (/). If you've already created your PR with an incorrect branch name, please rename your branch and open a fresh PR.
  • 🤖 New: Comment with /review to run an automated check that catches common issues before a Documentation team member reviews your PR.

AI assistance

Additional notes

@github-actions github-actions Bot added the Architecture Everything related to the Doc backend label Sep 7, 2026
@datadog-datadog-us1-prod

This comment has been minimized.

@davidejones davidejones changed the title update nav WEB-9804 - update nav reduce size Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Architecture Everything related to the Doc backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant